import Koa from 'koa'
import ResResult from './resResult'

export const registerGlobalApi = (app: Koa) => {
  app.context.success = ResResult.success
  app.context.fail = ResResult.fail
}
